from flask import Blueprint, render_template, abort, request

from extensions import db
from orms import ArticleORM, UserORM, CommentORM, CommentLikeORM
from orms.category import CategoryORM
from flask_jwt_extended import jwt_required, get_current_user

mixed_pic_bp = Blueprint('mixed_pic', __name__)


@mixed_pic_bp.get('/mixed_pic/')
@jwt_required(optional=True)
def mixed_pic_view():
    current_user: UserORM = get_current_user()
    return render_template("mixed_pic.html",
                           current_user=current_user)
